package ${package}.container {
	import flash.utils.Dictionary;
	import ${package}.bean.${className};

	import flash.utils.ByteArray;
	/** 
	 * @author ExcelUtil Auto Maker
	 * 
	 * @version 1.0.0
	 * 
	 * @since 2011-5-8
	 * 
	 * ${explain}
	 */
	public class ${className}Container {
		
		private var _list:Vector.<${className}> = new Vector.<${className}>();
		
		private var _dict:Dictionary = new Dictionary();
		
		private var _version:int;
		
		public function ${className}Container(bytes: ByteArray){
			_version = bytes.readInt();
			var num:int = bytes.readInt();
			for (var i : int = 0; i < num; i++) {
				var bean:${className} = new ${className}();
				bean.read(bytes);
				_list.push(bean);
				_dict[String(bean.${keyName})] = bean;
			}
		}
		
		public function get list(): Vector.<${className}>{
			return _list;
		}
		
		public function get dict(): Dictionary{
			return _dict;
		}
		
		public function get version(): int{
			return _version;
		}
	}
}
